#include<stdio.h>

void fun(double aa,int *x,double *y)
{
	*x=(int)aa;
	*y=aa-*x;
}

void main()
{
	double aa,b; int a;
	scanf("%lf",&aa);
	fun(aa,&a,&b);
	printf("%f---%d----%f\n",aa,a,b);
}